<template>
  <div>
    <div>
        <div class="green">
        <i class="fish"></i>
        <h2>
          吃鱼音乐
        </h2>
      </div>
      <div class="home">
        <!-- <router-link to="/"><i class="fa fa-thumbs-o-up" aria-hidden="true"></i>推荐</router-link> -->
        <!-- <router-link to="/radio">电台</router-link> -->
        <!-- <router-link to="/blogs">博客</router-link> -->
      </div>
      <!-- <router-link class="right" to="/listen">识曲</router-link> -->
    </div>
    <div class="search">
        <i class="fa fa-search" aria-hidden="true"></i>
        <input type="text" placeholder="搜索" @focus="$router.push('/search')"/>
    </div>
  </div>
</template>
<style lang="less" scoped>
.green{
background-color: var(--cy-Color);
    width: 100%;
    // padding: 7px 0;
    height: 50px;
    top: 0;
    left: 0;
    display: flex;
    position: absolute;
    font-weight: bold;
    color: #dcffe8;
    font-size: 30px;
  i.fish{
      width: 40px;
      height: 40px;
      margin: auto 5px;
      line-height: 50px;
      background:url('~@/assets/cy音乐.png') no-repeat;
      background-size: contain;
      display: block;
    }
    h2{
      line-height: 50px;
    }
}
.home {
  width: 100%;
  padding-top: 42px;
  background-color: var(--cy-Color);
  display: flex;
  align-items: center;
  letter-spacing: 1px;
  a {
    padding: 5px;
    font-size: 16px;
    color: #191919;
    text-decoration: none;
    margin: 5px;
    &.router-link-exact-active {
      font-weight: 600;
      font-size: 20px;
      border-bottom: 4px #22d59c solid;
      border-radius: 3px;
    }

  }    

}  
.search {
  margin: 8px 25px;
  border-radius: 40px;
  padding: 5px 50px;
  position: relative;
  background-color: #edeff2;
  i {
    font-size: 18px;
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #a4a7a8;
    
  }
  input {
    height: 25px;
    font-size: 14px;
    background-color: transparent;
    border: none;
    outline: none;
    color: #333;
  }
}
</style>